local zhuaya_slash = fk.CreateSkill {
  name = "#th_zhuaya_slash",
}

zhuaya_slash:addEffect("active", {
  name = "#th_zhuaya_slash",
  card_num = 0,
  card_filter = Util.FalseFunc,
  min_target_num = function(self)
    if not self.th_zhuayaUser then return 1 end
    return Fk:cloneCard("slash").skill:getMinTargetNum(self.th_zhuayaUser)
  end,
  max_target_num = function(self)
    if not self.th_zhuayaUser then return 1 end
    local slash = Fk:cloneCard("slash")
    return slash.skill:getMaxTargetNum(self.th_zhuayaUser, slash)
  end,
  target_filter = function(self, player, to_select, selected, _, _, extra_data)
    if not extra_data.th_zhuayaUser then return end
    local user = extra_data.th_zhuayaUser
    local slash = Fk:cloneCard("slash")
    slash.skillName = "th_zhuaya"
    return not table.contains(extra_data.th_zhuayaBanned, to_select) and slash.skill:targetFilter(user, to_select, selected, Card:getIdList(slash), slash, { bypass_times = true, bypass_distances = true })
  end
})

return zhuaya_slash